@(appointment: AppointmentHistory,tests: java.util.List[Tests], doctorDetails: DoctorDetails)
<!DOCTYPE html>

<html>
    <head>
        <title>Report</title>
    
	</head>
    <body >
    		<div style="height: 900px">
	    		<div style="border-bottom-width: 2px;border-bottom-color: grey;border-bottom-style: solid;">
	    			<img src="/public/images/appment_logo.png"/>
	    		</div>
	    		<div style="padding-top: 10px;text-align: right;">
	    			@import org.scala_tools.time.Imports._
					@import format._
					@import org.joda.time.Days
	    			Date: @DateTimeFormat.forPattern("MMMM d, yyyy").print(new DateTime(appointment.dateOfAppointment))
	    		</div>
				<div style="padding-top: 20px;font-size: 16px;font-family: Verdana, Geneva, sans-serif;padding-left: 10px;">
					<div >
						<table style="width: 100%">
							<tr>
								<td>
									<label ><strong>Patient Name: </strong> @appointment.patient.name</label>									
								</td>
								<td>
									<label ><strong>Patient ID: </strong> @appointment.patient.clientId</label>
								</td>
							</tr>
						</table>
					</div><br/>
					<div >
						<label ><strong>Patient Complained of: </strong> @appointment.appointmentHeadline</label><br/>
						<label style="padding-top: 10px;"><strong>Additional Information: </strong> @appointment.appointmentComment</label>
					</div>
					<div style="padding-top: 20px;">
						<label class="appointmentlabel"><strong>Diagnosis: </strong></label><br/>
						<table style="width: 70%">
						<tr>
							<th style="text-align: center;">Tests</th>
							<th style="text-align: center;">Test result</th>
						</tr>
						@for(test  <- tests ){
						<tr>
							<td><label style="padding-left: 20px;">@test.examination.examinationName </label></td>
							<td><label style="padding-left: 20px;">@test.testResult @test.examination.measureUnit</label></td>
						</tr>
						
						 }
						 </table>
					    </div>
				  	<div style="padding-top: 20px;">
						<label ><strong>Doctor's Comment: </strong> @appointment.doctorComments</label> 
				    </div>
				  	<div style="padding-top: 20px;text-align:left;">
						<label >Dr. @appointment.doctor.name</label><br/>
						<label >Reg. No: @doctorDetails.registrationNo</label><br/> 
				    </div>
				    
				</div>
    		
    		</div>
			<div style="border-top-width: 2px;border-top-color: grey;border-top-style: solid;width:100;bottom:0;text-align: right;">
				© 2013 Appment-All Rights Reserved
			</div>    
    
	</body>
</html>
